<template>
	<router-view></router-view>
</template>
<script>
import {
	useStore
} from 'vuex';
export default {
	data() {
		return {

		};
	},
	created() {
		this.store = useStore();
	},
	mounted(){
		this.wxofficialFn()
	},
	methods: {
		wxofficialFn() {
			this.store.dispatch("home/wxofficialAccessTokenApi",{
				url:window.location.href
			}).then(res => {
				if (res.status == 200) {
					localStorage.setItem('information',JSON.stringify(res.data) )
				}
			})
		},
	}
};
</script>
<style>
/* 悬浮变手 */
.hand {
	cursor: pointer;
}

.webkit-line-clamp-one {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.webkit-line-clamp-two {
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.webkit-line-clamp-three {
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

/* 改分页样式 自定义选中页码颜色 */
.ant-pagination-item-active a {
	color: #fff !important;
	background: #2C6BD8 !important;
}
</style>